<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * This is the utility class for doctrine to create tables from models.
 *
 * @author		akjmgalp
 * @Revision	From SVN
 */

// ------------------------------------------------------------------------
class Db_Tools extends CI_Controller {

	function create() {
		echo 'Reminder: Make sure the tables do not exist already.<br />
		<form action="" method="POST">
		<input type="submit" name="action" value="Create Tables"><br /><br />';
		
		if ($this->input->post('action')) {
			Doctrine::createTablesFromModels();
			echo "Done!";
		}
	}
		
}

